package com.zqxq.lottery.entity.constant;


import java.util.*;

public class BasketBallRule {

    //选球投注号对应比赛结果 APP端
    public static Map<Integer, String> scoreMap = new HashMap();
    //胜负
    public static final Integer[] sfKey = {0,1};
    //让分胜负
    public static final Integer[] rfsfKey = {2,3};
    //大小分
    public static final Integer[] dxfKey = {4,5};
    //胜分差
    public static final Integer[] sfcKey = {6,7,8,9,10,11,12,13,14,15,16,17};
    //串玩法
    public static final String[] bunchKey = {
            "2-1","3-1","4-1","5-1","6-1","7-1","8-1",
            "3-3","3-4",
            "4-4","4-5","4-6","4-11",
            "5-5","5-6","5-10","5-16","5-20","5-26",
            "6-6","6-7","6-15","6-20","6-22","6-35","6-42","6-50","6-57",
            "7-7","7-8","7-21","7-35","7-120",
            "8-8","8-9","8-28","8-56","8-70","8-247"
    };
    public static List<List<BallBunch>> bunchList = new ArrayList();
    public static Map<Integer,List<BallBunch>> bunchMap = new HashMap();

    static {
        //胜负
        scoreMap.put(0, "主负");
        scoreMap.put(1, "主胜");
        //让分胜负
        scoreMap.put(2, "让分主负");
        scoreMap.put(3, "让分主胜");
        //大小分
        scoreMap.put(4, "大分");
        scoreMap.put(5, "小分");
        //胜分差
        scoreMap.put(6, "主负（1-5）");
        scoreMap.put(7, "主负（6-10）");
        scoreMap.put(8, "主负（11-15）");
        scoreMap.put(9, "主负（16-20）");
        scoreMap.put(10, "主负（21-25）");
        scoreMap.put(11, "主负（26+）");
        scoreMap.put(12, "主胜（1-5）");
        scoreMap.put(13, "主胜（6-10）");
        scoreMap.put(14, "主胜（11-15）");
        scoreMap.put(15, "主胜（16-20）");
        scoreMap.put(16, "主胜（21-25）");
        scoreMap.put(17, "主胜（26+）");
        for(int i =0;i<9;i++){
            bunchList.add(new ArrayList());
        }
        bunchMap.put(1,new ArrayList());
        bunchMap.put(2,new ArrayList());
        for(String bunch:bunchKey){
            if(bunch.endsWith("-1")){
                bunchList.get(1).add(new BallBunch(bunch,bunch.replace("-","串")));
                continue;
            }
            if(bunch.startsWith("2-")){
                bunchList.get(2).add(new BallBunch(bunch,bunch.replace("-","串")));
            }
            if(bunch.startsWith("3-")){
                bunchList.get(3).add(new BallBunch(bunch,bunch.replace("-","串")));
            }
            if(bunch.startsWith("4-")){
                bunchList.get(4).add(new BallBunch(bunch,bunch.replace("-","串")));
            }
            if(bunch.startsWith("5-")){
                bunchList.get(5).add(new BallBunch(bunch,bunch.replace("-","串")));
            }
            if(bunch.startsWith("6-")){
                bunchList.get(6).add(new BallBunch(bunch,bunch.replace("-","串")));
            }
            if(bunch.startsWith("7-")){
                bunchList.get(7).add(new BallBunch(bunch,bunch.replace("-","串")));
            }
            if(bunch.startsWith("8-")){
                bunchList.get(8).add(new BallBunch(bunch,bunch.replace("-","串")));
            }
        }

    }
}